﻿using SqlSugar;

namespace AutoTest.Domain.Entities
{

    /// <summary>
    /// 开放平台信息
    /// </summary>
    [SugarTable("t_open_info", TableDescription = "开放平台信息")]
    public class OpenInfo : AllBaseEntity
	{
		///<summary>
		/// 主键Id
		///</summary>
		[SugarColumn(IsPrimaryKey = true, ColumnName = "id", ColumnDescription = "主键Id")]
		public long Id { get; set; } = 0;
		///<summary>
		/// OpenId
		///</summary>
		[SugarColumn(ColumnName = "open_id", ColumnDescription = "OpenId")]
		public string OpenId { get; set; } = string.Empty;
		///<summary>
		/// UnionId
		///</summary>
		[SugarColumn(ColumnName = "union_id", ColumnDescription = "UnionId")]
		public string UnionId { get; set; } = string.Empty;
		///<summary>
		/// UserInfo表的Id
		///</summary>
		[SugarColumn(ColumnName = "user_id", ColumnDescription = "UserInfo表的Id")]
		public long UserId { get; set; } = 0;
		///<summary>
		/// 昵称
		///</summary>
		[SugarColumn(ColumnName = "open_nick_name", ColumnDescription = "昵称")]
		public string OpenNickName { get; set; } = string.Empty;
		///<summary>
		/// 来源
		///</summary>
		[SugarColumn(ColumnName = "platform", ColumnDescription = "来源")]
		public string Platform { get; set; } = string.Empty;

		/// <summary>
		/// 是否关注公众号
		/// </summary>
		[SugarColumn(ColumnName = "is_subscrible", ColumnDescription = "是否关注公众号")]
		public bool IsSubscrible { get; set; } = false;

		///<summary>
		/// 创建时间
		///</summary>
		[SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
		public DateTime CreateTime { get; set; } = DateTime.Now;
		///<summary>
		/// 更新时间
		///</summary>
		[SugarColumn(ColumnName = "last_update_time", ColumnDescription = "更新时间")]
		public DateTime LastUpdateTime { get; set; } = DateTime.Now;

    }
}
